/**
 * This is a generated class and is not intended for modification.  To customize behavior
 * of this service wrapper you may modify the generated sub-class of this class - Contact_api.as.
 */
package services.contact_api
{
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.services.wrapper.HTTPServiceWrapper;

import mx.rpc.AbstractOperation;
import mx.rpc.AsyncToken;
import mx.rpc.http.HTTPMultiService;
import mx.rpc.http.Operation;


[ExcludeClass]
internal class _Super_Contact_api extends com.adobe.fiber.services.wrapper.HTTPServiceWrapper
{

	private const appName:String = "Members";
	private const ipAddress:String = "localhost";
    // Constructor
    public function _Super_Contact_api()
    {
        // initialize service control
        _serviceControl = new mx.rpc.http.HTTPMultiService();
         var operations:Array = new Array();
         var operation:mx.rpc.http.Operation;
         var argsArray:Array;

         operation = new mx.rpc.http.Operation(null, "GetHistory");
         operation.url = "http://"+ipAddress+"/" + appName + "/GetHistory.ashx";
         operation.method = "GET";
		 argsArray = new Array("memberId");
		 operation.argumentNames = argsArray;         
		 operation.showBusyCursor = true;
         operation.resultType = Object;
         operations.push(operation);
		 
		 operation = new mx.rpc.http.Operation(null, "GetContacts");
		 operation.url = "http://"+ipAddress+"/" + appName + "/GetContacts.ashx";
		 operation.method = "GET";
		 operation.resultType = Object;
		 operation.showBusyCursor = true;
		 operations.push(operation);

         operation = new mx.rpc.http.Operation(null, "GetContact");
         operation.url = "http://"+ipAddress+"/" + appName + "/Contact/GetRemoteContact";
         operation.method = "GET";
         argsArray = new Array("memberId", "loginInfo");
         operation.argumentNames = argsArray;         
         operation.resultType = Object;
		 operation.showBusyCursor = true;
         operations.push(operation);
		 
		 operation = new mx.rpc.http.Operation(null, "SaveBookingInfo");
		 operation.url = "http://"+ipAddress+"/" + appName + "/SaveBookingInfo.ashx";
		 operation.method = "POST";
		 operation.contentType = "application/x-www-form-urlencoded ";
		 operation.resultType = Object;
		 operation.showBusyCursor = true;
		 operations.push(operation);
		 
		 operation = new mx.rpc.http.Operation(null, "GetUserLoginID");
		 operation.url = "http://"+ipAddress+"/ga2004/ims/boxoffice/get_session.asp";
		 operation.method = "POST";
		 operation.resultType = Object;
		 operation.showBusyCursor = true;
		 operations.push(operation);

         _serviceControl.operationList = operations;  


         preInitializeService();
         model_internal::initialize();
    }
    
    //init initialization routine here, child class to override
    protected function preInitializeService():void
    {
      
    }
    

    /**
      * This method is a generated wrapper used to call the 'GetHistory' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function GetHistory(memberId:String) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("GetHistory");
		var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(memberId) ;
        return _internal_token;
    }
     
    /**
      * This method is a generated wrapper used to call the 'GetContact' operation. It returns an mx.rpc.AsyncToken whose 
      * result property will be populated with the result of the operation when the server response is received. 
      * To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value. 
      * You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
      *
      * @see mx.rpc.AsyncToken
      * @see mx.rpc.CallResponder 
      *
      * @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
      */
    public function GetContact(memberId:String, loginInfo:String) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("GetContact");
		var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(memberId, loginInfo) ;
        return _internal_token;
    }
	
	public function GetContacts() : mx.rpc.AsyncToken
	{
		var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("GetContacts");
		var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;
		return _internal_token;
	}
	
	
	public function GetUserLoginID() : mx.rpc.AsyncToken
	{
		var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("GetUserLoginID");
		var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;
		return _internal_token;
	}
	
	public function SaveBookingInfo(data:String) : mx.rpc.AsyncToken
	{
		var _internal_operation: mx.rpc.http.Operation = _serviceControl.getOperation("SaveBookingInfo") as  mx.rpc.http.Operation;
		var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(data) ;
		return _internal_token;
	}

}

}
